.class Les/hk0$c;
.super Landroid/os/AsyncTask;
.source "CommonDownloadHandler.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/hk0;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "c"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/os/AsyncTask<",
        "Ljava/lang/String;",
        "Ljava/lang/Void;",
        "Les/zn0;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Les/hk0;


# direct methods
.method private constructor <init>(Les/hk0;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Les/hk0;Les/hk0$a;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Les/hk0$c;-><init>(Les/hk0;)V

    return-void
.end method


# virtual methods
.method protected varargs a([Ljava/lang/String;)Les/zn0;
    .locals 4

    const/4 v0, 0x0

    if-eqz p1, :cond_2

    .line 1
    array-length v1, p1

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-lt v1, v2, :cond_0

    aget-object v1, p1, v3

    .line 2
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    aget-object p1, p1, v3

    .line 4
    iget-object v1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v1}, Les/hk0;->d(Les/hk0;)Les/zi0;

    move-result-object v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v1}, Les/hk0;->d(Les/hk0;)Les/zi0;

    move-result-object v1

    invoke-interface {v1}, Les/zi0;->l()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 5
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v0

    iget-object v1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v1}, Les/hk0;->d(Les/hk0;)Les/zi0;

    move-result-object v1

    invoke-interface {v1}, Les/zi0;->l()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, p1, v1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Ljava/lang/String;Ljava/lang/String;)Les/zn0;

    move-result-object v0

    :cond_1
    if-nez v0, :cond_2

    .line 6
    invoke-static {}, Lcom/ss/android/socialbase/appdownloader/e;->k()Lcom/ss/android/socialbase/appdownloader/e;

    move-result-object v0

    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Lcom/ss/android/socialbase/appdownloader/e;->a(Landroid/content/Context;Ljava/lang/String;)Les/zn0;

    move-result-object v0

    :cond_2
    :goto_0
    return-object v0
.end method

.method protected a(Les/zn0;)V
    .locals 4

    .line 7
    invoke-super {p0, p1}, Landroid/os/AsyncTask;->onPostExecute(Ljava/lang/Object;)V

    .line 8
    invoke-virtual {p0}, Landroid/os/AsyncTask;->isCancelled()Z

    move-result v0

    if-nez v0, :cond_9

    iget-object v0, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v0}, Les/hk0;->d(Les/hk0;)Les/zi0;

    move-result-object v0

    if-nez v0, :cond_0

    goto/16 :goto_3

    .line 9
    :cond_0
    :try_start_0
    iget-object v0, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v0}, Les/hk0;->d(Les/hk0;)Les/zi0;

    move-result-object v0

    invoke-interface {v0}, Les/zi0;->t()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v1}, Les/hk0;->d(Les/hk0;)Les/zi0;

    move-result-object v1

    invoke-interface {v1}, Les/zi0;->p()I

    move-result v1

    iget-object v2, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v2}, Les/hk0;->d(Les/hk0;)Les/zi0;

    move-result-object v2

    invoke-interface {v2}, Les/zi0;->q()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v1, v2}, Les/cl0;->a(Ljava/lang/String;ILjava/lang/String;)Les/uj0;

    move-result-object v0

    .line 10
    invoke-virtual {v0}, Les/uj0;->a()Z

    move-result v0

    const/4 v1, 0x0

    if-eqz p1, :cond_4

    .line 11
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v2

    if-eqz v2, :cond_4

    if-nez v0, :cond_1

    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v2

    invoke-virtual {v2, p1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Les/zn0;)Z

    move-result v2

    if-nez v2, :cond_4

    .line 12
    :cond_1
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v0

    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/ss/android/socialbase/downloader/downloader/g;->k(I)V

    .line 13
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v0

    invoke-static {v0}, Les/jo0;->a(I)Les/jo0;

    move-result-object v0

    const-string v2, "bugfix_remove_listener"

    const/4 v3, 0x1

    .line 14
    invoke-virtual {v0, v2, v3}, Les/jo0;->a(Ljava/lang/String;Z)Z

    move-result v0

    xor-int/2addr v0, v3

    .line 15
    iget-object v2, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v2}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object v2

    if-eqz v2, :cond_3

    iget-object v2, p0, Les/hk0$c;->a:Les/hk0;

    .line 16
    invoke-static {v2}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object v2

    invoke-virtual {v2}, Les/zn0;->X0()I

    move-result v2

    const/4 v3, -0x4

    if-eq v2, v3, :cond_2

    if-nez v0, :cond_3

    iget-object v0, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v0}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object v0

    invoke-virtual {v0}, Les/zn0;->X0()I

    move-result v0

    const/4 v2, -0x1

    if-ne v0, v2, :cond_3

    .line 17
    :cond_2
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {p1, v1}, Les/hk0;->a(Les/hk0;Les/zn0;)Les/zn0;

    goto :goto_0

    .line 18
    :cond_3
    iget-object v0, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v0, p1}, Les/hk0;->a(Les/hk0;Les/zn0;)Les/zn0;

    .line 19
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object p1

    iget-object v0, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v0}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object v0

    invoke-virtual {v0}, Les/zn0;->N0()I

    move-result v0

    iget-object v1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v1}, Les/hk0;->f(Les/hk0;)Les/sn0;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(ILes/sn0;)V

    .line 20
    :goto_0
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {p1}, Les/hk0;->g(Les/hk0;)Les/jk0;

    move-result-object p1

    iget-object v0, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v0}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object v0

    iget-object v1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v1}, Les/hk0;->b(Les/hk0;)Les/gj0;

    move-result-object v1

    iget-object v2, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v2}, Les/hk0;->a(Les/hk0;)Ljava/util/Map;

    move-result-object v2

    invoke-static {v2}, Les/jk0;->a(Ljava/util/Map;)Ljava/util/List;

    move-result-object v2

    invoke-virtual {p1, v0, v1, v2}, Les/jk0;->a(Les/zn0;Les/gj0;Ljava/util/List;)V

    goto/16 :goto_2

    :cond_4
    if-eqz p1, :cond_5

    .line 21
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v2

    invoke-virtual {v2, p1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Les/zn0;)Z

    move-result v2

    if-eqz v2, :cond_5

    .line 22
    invoke-static {}, Lcom/ss/android/socialbase/downloader/notification/b;->b()Lcom/ss/android/socialbase/downloader/notification/b;

    move-result-object v2

    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result p1

    invoke-virtual {v2, p1}, Lcom/ss/android/socialbase/downloader/notification/b;->e(I)V

    .line 23
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {p1, v1}, Les/hk0;->a(Les/hk0;Les/zn0;)Les/zn0;

    .line 24
    :cond_5
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {p1}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object p1

    if-eqz p1, :cond_6

    .line 25
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object p1

    iget-object v2, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v2}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object v2

    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {p1, v2}, Lcom/ss/android/socialbase/downloader/downloader/g;->k(I)V

    .line 26
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {p1}, Les/hk0;->h(Les/hk0;)Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object p1

    iget-object v2, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v2}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object v2

    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    iget-object v3, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v3}, Les/hk0;->f(Les/hk0;)Les/sn0;

    move-result-object v3

    invoke-virtual {p1, v2, v3}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(ILes/sn0;)V

    :cond_6
    if-eqz v0, :cond_7

    .line 27
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    new-instance v0, Les/zn0$b;

    iget-object v1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v1}, Les/hk0;->d(Les/hk0;)Les/zi0;

    move-result-object v1

    invoke-interface {v1}, Les/zi0;->a()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Les/zn0$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Les/zn0$b;->a()Les/zn0;

    move-result-object v0

    invoke-static {p1, v0}, Les/hk0;->a(Les/hk0;Les/zn0;)Les/zn0;

    .line 28
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {p1}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object p1

    const/4 v0, -0x3

    invoke-virtual {p1, v0}, Les/zn0;->b(I)V

    .line 29
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {p1}, Les/hk0;->g(Les/hk0;)Les/jk0;

    move-result-object p1

    iget-object v0, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v0}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object v0

    iget-object v1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v1}, Les/hk0;->b(Les/hk0;)Les/gj0;

    move-result-object v1

    iget-object v2, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v2}, Les/hk0;->a(Les/hk0;)Ljava/util/Map;

    move-result-object v2

    invoke-static {v2}, Les/jk0;->a(Ljava/util/Map;)Ljava/util/List;

    move-result-object v2

    invoke-virtual {p1, v0, v1, v2}, Les/jk0;->a(Les/zn0;Les/gj0;Ljava/util/List;)V

    goto :goto_2

    .line 30
    :cond_7
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {p1}, Les/hk0;->a(Les/hk0;)Ljava/util/Map;

    move-result-object p1

    invoke-static {p1}, Les/jk0;->a(Ljava/util/Map;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_1
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_8

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/aj0;

    .line 31
    invoke-interface {v0}, Les/aj0;->a()V

    goto :goto_1

    .line 32
    :cond_8
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {p1, v1}, Les/hk0;->a(Les/hk0;Les/zn0;)Les/zn0;

    .line 33
    :goto_2
    iget-object p1, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {p1}, Les/hk0;->g(Les/hk0;)Les/jk0;

    move-result-object p1

    iget-object v0, p0, Les/hk0$c;->a:Les/hk0;

    invoke-static {v0}, Les/hk0;->e(Les/hk0;)Les/zn0;

    move-result-object v0

    invoke-virtual {p1, v0}, Les/jk0;->b(Les/zn0;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_3

    :catch_0
    move-exception p1

    .line 34
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_9
    :goto_3
    return-void
.end method

.method protected synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 0

    .line 1
    check-cast p1, [Ljava/lang/String;

    invoke-virtual {p0, p1}, Les/hk0$c;->a([Ljava/lang/String;)Les/zn0;

    move-result-object p1

    return-object p1
.end method

.method protected synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0

    .line 1
    check-cast p1, Les/zn0;

    invoke-virtual {p0, p1}, Les/hk0$c;->a(Les/zn0;)V

    return-void
.end method
